title: How do I fix couple of errors - generating SQL Script
body: <p>Trying to create a SQL script for user migrations from On-Prem SQL DB to Azure SQL. Getting the following two errors. Noob here, any assistance would be appreciated as its been really exhausting to figure this thing out.</p>
  <p>Split-Path: Cannot bind argument to parameter 'Path' because it is null.
  New-UserMigrationSQL:
  Line |
  10 |      -TargetServerSQLAdminPassword &quot;$Manager1&quot; `
  |                                    ~~~~~~~~~~~
  | Cannot bind argument to parameter 'TargetServerSQLAdminPassword' because it is an empty string.</p>
  <pre><code> $ErrorActionPreference = &quot;Stop&quot;
   $PSScriptRoot = Split-Path -parent $MyInvocation.MyCommand.Path
   Import-Module C:\Cloud\GeneratePostCloudMigrationSql.psm1 -Force
  
  
  
   New-UserMigrationSQL `
  -SourceServer &quot;mysourceSQL Database Server name&quot; `
  -SourceDatabase &quot;mysource database&quot; `
  -SourceServerSQLAdminUsername &quot;admin&quot; `
  -SourceServerSQLAdminPassword &quot;admin password&quot; `
  -targetCloudProvider &quot;Azure&quot; `
  -TargetServer &quot;test.database.windows.net&quot; `
  -TargetDatabase &quot;test_migration&quot; `
  -TargetServerSQLAdminUsername &quot;admin&quot; `
  -TargetServerSQLAdminPassword &quot;admin password&quot; `
  -QueryTimeout 120 `
  -TargetDomain &quot;@mydomain.com&quot; `
  -TargetDomainType &quot;AAD&quot; `
  -usernameConversionMap $usernameConversionMap `
  -outputDirForGeneratedSql &quot;./generatedSQL/&quot;
  </code></pre>