If you overcome this error when creating the password file for your Oracle Database; kindly recheck your syntax
Sample Syntax
orapwd file=%ORACLE_HOME%\database\PWDtest.ora entries=5 ignorecase=y
Kindly do not use single quotes to contain the file location